package com.ktr.utils;

import java.util.Map;

public class Device {
    private String key; // key
    private String address; // 地址
    private int port; // 端口
    private byte[] instruct; // 指令
    private long ktrId; // id
    private String code; // 设备地址码
    private int start; // 起始位
    private int end; // 结束位
    private int step; // 步长
    private Map<Integer, Double> deviceDataMap;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public byte[] getInstruct() {
        return instruct;
    }

    public void setInstruct(byte[] instruct) {
        this.instruct = instruct;
    }

    public long getKtrId() {
        return ktrId;
    }

    public void setKtrId(long ktrId) {
        this.ktrId = ktrId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }

    public Map<Integer, Double> getDeviceDataMap() {
        return deviceDataMap;
    }

    public void setDeviceDataMap(Map<Integer, Double> deviceDataMap) {
        this.deviceDataMap = deviceDataMap;
    }
}